<?
/**
**自助机登录判断
**2015-06-18 PM 15:30
**by pzp
**/
if (!class_exists("go_sql")){
	include("/var/www/html/new/conf/le.je");
	$le=new go_sql();
	$le->connect();
}
$zj_account= $_REQUEST['account'];
$zj_password = $_REQUEST['password'];
$zj_sign = $_REQUEST['sign'];
$check_sign = md5('login'.$zj_account.$zj_password);
if($zj_sign == $check_sign){
	$select_pwd = "select password,id from pft_member where account=".$zj_account." limit 1";
	$GLOBALS['le']->query($select_pwd);
	$result = $GLOBALS['le']->fetch_assoc();
	$pft_pwd = $result['password'];	
	$memberid = $result['id'];
	if($result){
		if($pft_pwd == $zj_password)	
			echo "100|".$memberid; //密码正确
		else 	echo 101;  //密码错误
	}
	else echo 102;  //账号不存在
}
else echo 103;	//签名不通过
?>